<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{wc:if isset($title)}{wc:$title}{wc:else}{wc:fun:_cfg("web_name")}{wc:if:end}</title>
<meta name="keywords" content="{wc:if isset($keywords)}{wc:$keywords}{wc:else}{wc:fun:_cfg("web_key")}{wc:if:end}" />
<meta name="description" content="{wc:if isset($description)}{wc:$description}{wc:else}{wc:fun:_cfg("web_des")}{wc:if:end}" />
<meta http-equiv = "X-UA-Compatible" content = "IE = edge" />
<link rel="stylesheet" type="text/css" href="{G_TEMPLATES_CSS}/Comm.css"/>
<link rel="stylesheet" type="text/css" href="{G_TEMPLATES_CSS}/register.css"/>
<link rel="stylesheet" type="text/css" href="{G_TEMPLATES_STYLE}/css/Home.css"/>
<script type="text/javascript" src="{G_GLOBAL_STYLE}/global/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="{G_TEMPLATES_JS}/jquery.cookie.js"></script>
<style>
	.h_1yyg_eject{
		width: 200px !important;
	}
		/*解决问题3*/
		body{
		top:0px!important; 
		min-height: 0px!important;
	}
	/*解决问题2*/
	.goog-text-highlight{
		background-color: transparent!important;
		-webkit-box-shadow: 0 0px 0px rgba(0, 0, 0, 0)!important;
		-moz-box-shadow: 0 0px 0px rgba(0, 0, 0, 0)!important;
		box-shadow: 0 0px 0px rgba(0, 0, 0, 0)!important;
	}
	/*解决问题1*/
	.goog-close-link{
		display:none !important;
	}
</style>
</head>
<body >
	<script>
		function googleTranslateElementInit() {
		 
			new google.translate.TranslateElement(
				{
						//这个参数不起作用，看文章底部更新，翻译面板的语言
						// pageLanguage: 'en',
						// locallanguage: 'en',
					//这个是你需要翻译的语言，比如你只需要翻译成越南和英语，这里就只写en,vi
					includedLanguages: 'en,zh-CN,id',
					//选择语言的样式，这个是面板，还有下拉框的样式，具体的记不到了，找不到api~~
					layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
					//自动显示翻译横幅，就是翻译后顶部出现的那个，有点丑，这个属性没有用的话，请看文章底部的其他方法
					autoDisplay: true, 
					//还有些其他参数，由于原插件不再维护，找不到详细api了，将就了，实在不行直接上dom操作
				}, 
				'google_translate_element'//触发按钮的id
			);
		//  console.log(((new google.translate.TranslateElement).h)[A])
		}
	
	</script>
	<div id="google_translate_element" style="position:absolute;top:0;right:10px;z-index:2000;opacity:0.7" ></div>	
	<script src="https://translate.google.cn/translate_a/element.js?cb=googleTranslateElementInit"></script>
<div class="header">
<div class="d"><div>

	<div class="site_top">
		<div class="head_top">
		<p class="collect"><a href="javascript:;" id="addSiteFavorite">Collect cloud shopping</a></p>
        <p class="collect"><a href="{G_WEB_PATH}/?/go/index/weixin">Official wechat</a></p>
           <p class="collect"><a href="{G_WEB_PATH}/?/go/index/intro">Cloud shopping</a></p>
        <p class="collect"><a href="{G_WEB_PATH}/?/go/index/app" >Mobile version</a>&nbsp;&nbsp;&nbsp;&nbsp;</p>
		<p class="Ht-qqicon"><a class="gray01" href="{WEB_PATH}/group_qq" target="_blank">Official QQ group</a></p>
			<ul class="login_info" style="display: block;">
				{wc:if get_user_arr()}
				<li class="h_wel" id="logininfo">
					<a href="{WEB_PATH}/member/home" class="gray01" >					
						<img src="{G_UPLOAD_PATH}/{wc:fun:get_user_img('3030')}" width="30" height="30"/>					
						{wc:fun:get_user_name(get_user_arr(),'username')}
					</a>&nbsp;&nbsp;
					<a href="{WEB_PATH}/member/user/cook_end" class="gray01">[sign out]</a>
				</li>
				{wc:else}
				<li id="logininfo" class="h_login">		
					<a style="color:#3399FF" class="gray01" href="{WEB_PATH}/login" >Please log in</a>
					<a class="gray01" href="{WEB_PATH}/register" >Free registration</a>				
				</li>
				{wc:if:end}
				<li class="h_1yyg">
					<a  href="{WEB_PATH}/home/member">My cloud shopping<b></b></a>
					<div class="h_1yyg_eject" style="display:none;">
						<dl>
							<dt><a  href="{WEB_PATH}/member/home">My cloud shopping<i></i></a></dt>
							<dd><a  href="{WEB_PATH}/member/home/userbuylist">Cloud purchase record</a></dd>
							<dd><a  href="{WEB_PATH}/member/home">Goods acquired</a></dd>
							<dd><a  href="{WEB_PATH}/member/home/userrecharge">Recharge your account</a></dd>
							<dd><a  href="{WEB_PATH}/member/home/modify">Personal settings</a></dd>
						</dl>
					</div>
				</li>	
                <li class="h_inv"><a target="_blank" href="{G_WEB_PATH}/?/go/index/qualification#rz1"><img border="0" src="images/pa" style="display:none;">Integrity verification</a></li>	
				<li class="h_inv"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={wc:fun:_cfg("qq")}&site=qq&menu=yes"><img border="0" src="images/pa" style="display:none;">Online Service</a></li>
			</ul>
		</div>
	</div>
    
    

    
    
	<div class="head_mid">
		<div class="head_mid_bg">			
			<h1 class="logo_1yyg">
				<a class="logo_1yyg_img" href="{G_WEB_PATH}/" title="{wc:fun:_cfg('web_name')}">
					<img src="{G_UPLOAD_PATH}/{wc:fun:Getlogo()}"/>
				</a>
			</h1>			
			<div class="head_number">
				already
					<a href="{WEB_PATH}/buyrecord" target="_blank">
					<span id="spBuyCount" style="color:#22AAFF; background:#F5F5F5; opacity:1;">{wc:fun:go_count_renci()}</span>
					</a>
					Participation in cloud shopping
				
			</div>
			
			<div class="head_search">
				<div class="search_all">
					<input type="text" id="txtSearch" class="init" value='Please enter the item to search'/>				
					<a class="search_submit" id="butSearch"  >
						<i class="ico_search"></i>
					</a>
				</div>
				<div class="keySearch">
					<a href="{WEB_PATH}/s_tag/苹果" target="_blank">iphone</a>
					<a href="{WEB_PATH}/s_tag/iPhone" target="_blank">iPhone</a>
					<a href="{WEB_PATH}/s_tag/智能手机" target="_blank">phone</a>
					<a href="{WEB_PATH}/s_tag/G手机" target="_blank">3Giphone</a>
					<a href="{WEB_PATH}/s_tag/宝马" target="_blank">bmw</a>
					<a href="{WEB_PATH}/s_tag/单反" target="_blank">SLR</a>                 
				</div>
			</div>
		</div>
	</div>
</div>
<!--header end-->
<div class="head_nav">
 	<div class="nav_center">
 		<div class="m_catlog">
			<div class="m_catlog_hd" >
				<a href="{WEB_PATH}/goods_list">Prize classification</a>
			</div>
			<div class="m_catlog_wrap"  style="{wc:if isset($isindex) && $isindex=='Y'}display:block;{wc:else}display:none;{wc:if:end}">
                <div class="m_catlog_bd">
                    <ul class="m_catlog_list">            
						{wc:getlist sql="select * from `@#_category` where `model`='1' and `parentid` = '0' order by `order` DESC"}
						{wc:loop $data $categoryx}
						 <li><a href="{WEB_PATH}/goods_list/{wc:$categoryx['cateid']}">{wc:$categoryx['name']}</a></li>	
						{wc:loop:end}
						{wc:getlist:end}
                    </ul>
                </div>
            </div>
		</div>
		<div class="m_menu">
			<ul class="m_menu_list">			
			{wc:fun:Getheaderb('index')}
			</ul>
        </div>
		<div class="w_miniCart"  id="sCart">
            <a class="w_miniCart_btn" rel="nofollow"  id="sCartNavi"  href="{WEB_PATH}/member/cart/cartlist" data-pro="btn"><i class="ico ico_miniCart"></i>Shopping Cart
			<span type="hidden"  class="w-miniCart-count" id="sCartTotal">0</span></a>				
			<b id="btnMyCartccc"></b>
			 			<div class="mycart_list" id="sCartlist" style="z-index: 99999; display: none;">				
 				<div class="goods_loding" id="sCartLoading" style="display: none;"><img border="0" alt="" src="{G_TEMPLATES_STYLE}/images/goods_loading.gif">Loading......</div>
 				<p id="p1">total <span id="sCartTotal2"> 2</span> Total amount of goods：<span id="sCartTotalM" class="rmbred">5.00</span></p>
 				<h3><input type="button" id="sGotoCart" value="Go to the shopping cart and check out"></h3>
 			</div>
        </div>

 	</div>
</div>

<script>
$(function(){
	
	$("#sCart").hover(
		function(){			
			$("#sCartlist,#sCartLoading").show();
			$("#sCartlist p,#sCartlist h3").hide();
			$("#sCart .mycartcur").remove();
			$("#sCartTotal2").html("");
			$("#sCartTotalM").html("");
			$.getJSON("{WEB_PATH}/member/cart/cartheader/="+ new Date().getTime(),function(data){
				$("#sCart .mycartcur").remove();
				$("#sCartLoading").before(data.li);
				//浏览器兼容20150116ghm
				$("#sCartTotal2").html(data.num);
				if(data.sum=='0.00'){
				if(data.num=='1'){
				$("#sCartTotal2").html(data.num-1);
				}else{
				$("#sCartTotal2").html(data.num);
				}
				}else{
				$("#sCartTotal2").html(data.num);
				}
				//浏览器兼容20150116ghm								
				$("#sCartTotalM").html(data.sum);
				$("#sCartLoading").hide();
				$("#sCartlist p,#sCartlist h3").show();
			});
		},
		function(){
			$("#sCartlist").hide();
		}
	);
	$("#sGotoCart").click(function(){
		window.location.href="{WEB_PATH}/member/cart/cartlist";
	});
})
function delheader(id){
	var Cartlist = $.cookie('Cartlist');
	var info = $.evalJSON(Cartlist);
	var num=$("#sCartTotal2").html()-1;
	var sum=$("#sCartTotalM").html();
	info['MoenyCount'] = sum-info[id]['money']*info[id]['num'];
		
	delete info[id];
	//$.cookie('Cartlist','',{path:'/'});
	$.cookie('Cartlist',$.toJSON(info),{expires:30,path:'/'});
	$("#sCartTotalM").html(info['MoenyCount']);
	$('#sCartTotal2').html(num);
	$('#sCartTotal').text(num);											
	$('#btnMyCart em').text(num);
	$("#mycartcur"+id).remove();
}
$(function(){
	
	// setTimeout(()=>{
	// 	console.log(document.querySelector('.goog-close-link'),46545)
	// },000)

	$(".h_1yyg").mouseover(function(){
		$(".h_1yyg_eject").show();
	});
	$(".h_1yyg").mouseout(function(){
		$(".h_1yyg_eject").hide();
	});
	$(".h_news").mouseover(function(){
		$(".h_news_down").show();
	});
	$(".h_news").mouseout(function(){
		$(".h_news_down").hide();
	});
});
$(function(){
	$("#txtSearch").focus(function(){
		$("#txtSearch").css({background:"#FFFFCC"});
		var va1=$("#txtSearch").val();
		if(va1=='Enter "red rice mobile phone" and have a try'){
			$("#txtSearch").val("");
		}
	});
	$("#txtSearch").blur(function(){
		$("#txtSearch").css({background:"#FFF"});
		var va2=$("#txtSearch").val();
		if(va2==""){
			$("#txtSearch").val('Enter "red rice mobile phone" and have a try');
		}			
	});
	$("#butSearch").click(function(){
		window.location.href="{WEB_PATH}/s_tag/"+$("#txtSearch").val();
	});
});

	
	{wc:if !isset($isindex) || $isindex!='Y'}
     $(".m_catlog_hd").mouseover(function(){
		    $(".m_catlog_wrap").show();
    })
	 $(".m_catlog_hd").mouseout(function(){
		    $(".m_catlog_wrap").hide();
    })
	 $(".m_catlog_wrap").mouseover(function(){
		    $(".m_catlog_wrap").show();
    })
	 $(".m_catlog_wrap").mouseout(function(){
		    $(".m_catlog_wrap").hide();
    })
	{wc:if:end}
	
</script>
